import api from './index'
import { axios } from '@/utils/request'
import Qs from 'qs'

export function questionCategorySave(parameter) {
  return axios({
    url: api.QuestionCategorySave,
    method: 'post',
    data: Qs.stringify(parameter)
  })
}
export function questionCategoryDel(parameter) {
  return axios({
    url: api.QuestionCategoryDel,
    method: 'post',
    data: parameter
  })
}
export function questionCategoryList(parameter) {
  return axios({
    url: api.QuestionCategoryList,
    method: 'get',
    params: parameter
  })
}
export function evaluateList(parameter) {
  return axios({
    url: api.EvaluateList,
    method: 'get',
    params: parameter
  })
}
export function evaluationDetail(parameter) {
  return axios({
    url: api.GetEvaluationDetail,
    method: 'get',
    params: parameter
  })
}

export function evaluateExport(parameter) {
  return axios({
    url: api.EvaluateExport,
    method: 'get',
    params: parameter
  })
}

export function questionCategoryInfo(parameter) {
  return axios({
    url: api.QuestionCategoryInfo,
    method: 'get',
    params: parameter
  })
}

export function questionBankSave(parameter) {
    return axios({
      url: api.QuestionBankSave,
      method: 'post',
      data: Qs.stringify(parameter)
    })
  }
  export function questionBankDel(parameter) {
    return axios({
      url: api.QuestionBankDel,
      method: 'post',
      data: parameter
    })
  }
  export function questionBankList(parameter) {
    return axios({
      url: api.QuestionBankList,
      method: 'get',
      params: parameter
    })
  }
  export function questionBankInfo(parameter) {
    return axios({
      url: api.QuestionBankInfo,
      method: 'get',
      params: parameter
    })
  }



  export function questionBankAnswerSave(parameter) {
    return axios({
      url: api.QuestionBankAnswerSave,
      method: 'post',
      data: Qs.stringify(parameter)
    })
  }
  export function questionBankAnswerDel(parameter) {
    return axios({
      url: api.QuestionBankAnswerDel,
      method: 'post',
      data: parameter
    })
  }
  export function questionBankAnswerList(parameter) {
    return axios({
      url: api.QuestionBankAnswerList,
      method: 'get',
      params: parameter
    })
  }
  export function questionBankAnswerInfo(parameter) {
    return axios({
      url: api.QuestionBankAnswerInfo,
      method: 'get',
      params: parameter
    })
  }

